package mode;

public class Fire extends Flyobject {
	int dir;
	public Fire(int hx,int hy,int dir){
		img=App.getImg("/img/zidan.png");
        //子弹图大小
		h=img.getHeight()/2;
		w=img.getWidth()/2;
        //子弹的初始位置
		x=hx;
		y=hy;
		this.dir=dir;
	}
	public void move(){
		if(dir==-2){
			x-=3;
			y-=10;
		}else if(dir==-1){
			x-=2;
			y-=10;
		}else if(dir==0){
			y-=10;
		}else if(dir==1){
			x+=2;
			y-=10;
		}else if(dir==2){
			x+=3;
			y-=10;
		}
		
	}

}
